import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'
import TemplateVarListView from "@/views/TemplateVarListView.vue";
import TemplateListView from "@/views/TemplateListView.vue";
import FileEditor from "@/views/FileEditor.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/modelList',
      name: 'modelList',
      component: HomeView,
    },
    {
      path: '/templateList',
      name: 'templateList',
      component: TemplateListView,
    },
    {
      path: '/templateVarList',
      name: 'templateVarList',
      component: TemplateVarListView,
    },
    {
      path: '/fileEditor',
      name: 'fileEditor',
      component: FileEditor,
    },
  ],
})

export default router
